package com.ruoyi.passengers.domain;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 黑名单对象 black_list
 *
 * @author ruoyi
 * @date 2025-08-27
 */
public class BlackList extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 黑名单ID
     */
    private Long blackId;

    /**
     * 乘客ID
     */
    @Excel(name = "乘客ID")
    private Long passengersId;

    /**
     * 拉黑的司机ID
     */
    @Excel(name = "拉黑的司机ID")
    private Long driversId;

    /**
     * 拉黑原因
     */
    @Excel(name = "拉黑原因")
    private String blackReason;

    /**
     * 拉黑时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "拉黑时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date blackTime;

    private String passengersName;

    private String driversName;

    public void setBlackId(Long blackId) {
        this.blackId = blackId;
    }

    public Long getBlackId() {
        return blackId;
    }

    public void setPassengersId(Long passengersId) {
        this.passengersId = passengersId;
    }

    public Long getPassengersId() {
        return passengersId;
    }

    public void setDriversId(Long driversId) {
        this.driversId = driversId;
    }

    public Long getDriversId() {
        return driversId;
    }

    public void setBlackReason(String blackReason) {
        this.blackReason = blackReason;
    }

    public String getBlackReason() {
        return blackReason;
    }

    public void setBlackTime(Date blackTime) {
        this.blackTime = blackTime;
    }

    public Date getBlackTime() {
        return blackTime;
    }

    public String getPassengersName() {
        return passengersName;
    }

    public void setPassengersName(String passengersName) {
        this.passengersName = passengersName;
    }

    public String getDriversName() {
        return driversName;
    }

    public void setDriversName(String driversName) {
        this.driversName = driversName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("blackId", getBlackId())
                .append("passengersId", getPassengersId())
                .append("driversId", getDriversId())
                .append("blackReason", getBlackReason())
                .append("blackTime", getBlackTime())
                .append("passengersName", getPassengersName())
                .append("driversName", getDriversName())
                .toString();
    }
}